package com.yyx.test;

import com.yyx.config.SpringConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class test {
    public static void main(String[] args) {


        AnnotationConfigApplicationContext annotationConfigApplicationContext=
                new AnnotationConfigApplicationContext(SpringConfig.class);
//
//        TestService testService= annotationConfigApplicationContext.getBean(TestServiceImpl.class);
//        testService.query();

//        TestMapper testMapper= (TestMapper) annotationConfigApplicationContext.getBean("testMapper");
//        System.out.println(testMapper.getUser());


    }

}
